Hi everyone!
I want to replace all columns which contain the attribute "Object Identifer" with a layout DXL. The layout DXL displays the object identifier and adds additional information (object version) to the string.
Every export or view, that contains the ID should display my modified ID.
For this reason I'm looking for a possibility to get a trigger fired when the user changes the current view or adds an attribute . Then I could easily go through all columns in the current view, and replace the attribute with my layout DXL.
The only solution I can think of, is an object sync trigger that checks the columns, but that would be a pretty terrible way to solve this issue :)
I would appreciate all ideas and tips!
Regards,
Johnny
Johnny_P - Wed Feb 20 05:24:07 EST 2013 |
|
Re: Trigger on view change SystemAdmin - Wed Feb 20 06:03:30 EST 2013
It's way easier to create a DXL Attribute which you roll out to all modules and to instruct your users to use this attribute instead of the object identifier in all export views and other views.
if you have users which do not learn easily, change the identifier prefix in all modules to
"DO NOT USE THIS ATTRIBUTE-" :-)
Regards,
Mike
|
|
Re: Trigger on view change llandale - Wed Feb 20 13:13:25 EST 2013
There are not triggers associated with views. You could have some nightly script that looks for such views and adjusts them, but it will take a very long time to run.
If perhaps this "version" info could come before the ObjID; you could modify the module's Prefix to include the version.
Change this Prefix
into this:
You could do that with a trigger. This however will mess up any referencing you've been doing including ObjIDs.
I would name this notion something definitive such as "ProgramID" ProgID; so folks don't get confused with the native ObjID.
-Louie
|
|
Re: Trigger on view change Johnny_P - Thu Feb 21 05:34:20 EST 2013
Thanks for your replies!
I think I really have to stick with a separated DXL attribute.
@Louie:
It is very important to me, not to mess with the original Object ID. You are right, if I modify the ID or add a second one, users will only get confused.
The whole thing is necessary because we started implementing a way to branch single objects in our modules. Therefore we need a way to show the user if an object was branched and which version it is.
My modified ID looks like this: <Object Identifier> (<Absolute Number of the original object>v<branch version>)
For example: SysSpec_345 (320v1)
This would be the object SysSpec_345, which is the first branched version ob object SysSpec_320.
Regards,
Johnny
|
|
Re: Trigger on view change SystemAdmin - Thu Feb 21 05:52:58 EST 2013 Johnny_P - Thu Feb 21 05:34:20 EST 2013
Thanks for your replies!
I think I really have to stick with a separated DXL attribute.
@Louie:
It is very important to me, not to mess with the original Object ID. You are right, if I modify the ID or add a second one, users will only get confused.
The whole thing is necessary because we started implementing a way to branch single objects in our modules. Therefore we need a way to show the user if an object was branched and which version it is.
My modified ID looks like this: <Object Identifier> (<Absolute Number of the original object>v<branch version>)
For example: SysSpec_345 (320v1)
This would be the object SysSpec_345, which is the first branched version ob object SysSpec_320.
Regards,
Johnny
This is the exact situation where we introduced a DXL Attribute "RequirementID" in one project.
In my experience, it does not help to have an automatism that replaces the Object Identifier -- the team members will have to learn what they are doing. anyway, you will not be able to modify the "Standard View"
I think you will need additional attributes as well, such as "this variant of the requirement is valid from version 3 to 9 of the software", so that you can later filter your module to show you the requirements actually valid for SW Version 5. Thus, you should roll out predefined views which contain everything the users need. If you really want to, you can set these views as writable for admins and readable to everyone.
HTH
Mike
|
|
Re: Trigger on view change SystemAdmin - Thu Feb 21 05:54:14 EST 2013 SystemAdmin - Thu Feb 21 05:52:58 EST 2013
This is the exact situation where we introduced a DXL Attribute "RequirementID" in one project.
In my experience, it does not help to have an automatism that replaces the Object Identifier -- the team members will have to learn what they are doing. anyway, you will not be able to modify the "Standard View"
I think you will need additional attributes as well, such as "this variant of the requirement is valid from version 3 to 9 of the software", so that you can later filter your module to show you the requirements actually valid for SW Version 5. Thus, you should roll out predefined views which contain everything the users need. If you really want to, you can set these views as writable for admins and readable to everyone.
HTH
Mike
… and set one of these rolled out views as the default view for each module.
|
|
Re: Trigger on view change Johnny_P - Mon Feb 25 07:27:10 EST 2013
Thanks for your input Mike!
I simply introduced the new ID attribute, replaced it in our predefined views and announced that we use this one from now on :)
Additionally I wrote a simple include file, which checks all columns in the current view and replaces all "Object Identifier" columns with my dxl column.
The file is included in all our export scripts. This way I made sure, that every export that contains the DOORS ID (every export should) also contains our requirement version.
We always had a "Target Release" attribute. This attribute shows the validation for each object. Additionaly I provided a "Target Release filter" script, which dynamically creates a filter on the module, that shows only the valid objects for the selected target release. This filter contains at most one version of an requirement.
Nevertheless, a trigger on view changes would be helpful in many situations...
Regards,
Johnny
|
|